#!/bin/sh

schoolCode=$1
export JAVA_HOME=/home/jdk
export JRE_HOME=$JAVA_HOME/jre
export JAVA_OPTS="-Xms4096m -Xmx4096m -XX:PermSize=512m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/$schoolCode/heapdump.hprof"
SERVER_HOME=/home/$schoolCode/servers
TOMCAT7081=$SERVER_HOME/tomcat
$TOMCAT7081/bin/startup.sh
